﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RecordManagers.aspx.cs"
    Inherits="EDMS.Admin.DelegateRecord.RecordManagers" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">
        //关闭当前页面
        function closeWindow() {
            window.open('', '_parent', '');
            window.close();
        }


        function showWt(Control) {
            popWt.ShowAtElement(Control);
        }

        function showBwt(Control) {
            popBWt.ShowAtElement(Control);
        }

        //委托单选
        function grid_SelectionChanged(s, e) {
            s.GetSelectedFieldValues("xmxm;sfzh", GetSelectedFieldValuesCallback);
        }
        function GetSelectedFieldValuesCallback(values) {
            if (values != "") {
                wtxmxm.SetText(values[0][0]);
                wtcard.SetText(values[0][1]);
            }

        }
        //被委托单选
        function grids_SelectionChanged(s, e) {
            s.GetSelectedFieldValues("xmxm;sfzh", GetSelectedFieldValuesCallbacks);
        }
        function GetSelectedFieldValuesCallbacks(values) {
            if (values != "") {
                xmxmb.SetText(values[0][0]);
                xmcardb.SetText(values[0][1]);
            }

        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <h3 class="DemoTitle">
        电话委托管理
    </h3>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
            <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                GroupBoxCaptionOffsetY="-19px" HeaderText="待办事项处理" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                Width="100%">
                <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px">
                </ContentPaddings>
                <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                </HeaderStyle>
                <PanelCollection>
                    <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                        <h6 style="height: 5px; font-size: 12px; margin-bottom: 5px; padding-bottom: 5px;">
                            不需操作部分</h6>
                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;">
                            <tbody>
                                <tr>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="选举名称：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                            id="Table4" class="dxeTextBox_DevEx dxeTextBoxSys">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxComboBox ID="cmdxjmc" runat="server" Width="200px" 
                                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                            CssPostfix="Office2010Blue" Spacing="0" 
                                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                            DataSourceID="sqlCmdXjmc" TextField="xjmc" ValueField="xjbh">
                                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                            </LoadingPanelImage>
                                                            <LoadingPanelStyle ImageSpacing="5px">
                                                            </LoadingPanelStyle>
                                                            <ButtonStyle Width="13px">
                                                            </ButtonStyle>
                                                        </dx:ASPxComboBox> 
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="验证码：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                            id="Table3" class="dxeTextBox_DevEx dxeTextBoxSys">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxLabel ID="lblyzm" runat="server" Width="200px" Text="ASPxLabel" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="委托方式：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="1">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxTextBox ID="txtwtfs" runat="server" Width="200px" Text="电话委托">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel7" runat="server" Text="委托发生日期：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="dxgvEditFormCell_DevEx" colspan="1" style="width: 25%;">
                                        <table id="Table2" cellpadding="0" cellspacing="0" class="dxeTextBox_DevEx dxeTextBoxSys"
                                            style="width: 100%; border-collapse: collapse;">
                                            <tbody>
                                                <tr>
                                                    <td class="dxic" style="width: 100%;">
                                                        <dx:ASPxTextBox ID="txtfssj" runat="server" Width="200px">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <h6 style="height: 5px; font-size: 12px; border-bottom: 1px dotted #F00078; margin-bottom: 5px;
                            padding-bottom: 5px;">
                            需操作部分</h6>
                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;">
                            <tbody>
                                <tr>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel14" runat="server" Text="委托人(姓名)：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                            id="Table9" class="dxeTextBox_DevEx dxeTextBoxSys">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxTextBox ID="txtwtname" runat="server" Width="200px" Style="margin-left: 1px;
                                                            margin-right: 1px; margin-top: 1px; margin-bottom: 2px;" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel15" runat="server" Text="被委托人(姓名)：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                            id="Table10" class="dxeTextBox_DevEx dxeTextBoxSys">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxTextBox ID="txtbwtname" runat="server" Width="200px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="委托人(身份证号码)：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                            id="ctl00_ContentHolder_grid_DXPEForm_DXEditor5" class="dxeTextBox_DevEx dxeTextBoxSys">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxTextBox ID="txtwtrsf" runat="server" Width="200px" Style="margin-left: 1px;
                                                            margin-right: 1px; margin-top: 1px; margin-bottom: 2px;" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        <a href="#" onclick="javascript:showWt(this)">
                                                            <dx:ASPxImage ID="imgwtEdits" ImageUrl="~/Images/037.gif" Height="16px" runat="server">
                                                            </dx:ASPxImage>
                                                        </a>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text="被委托人(身份证号码)：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                            id="Table1" class="dxeTextBox_DevEx dxeTextBoxSys">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxTextBox ID="txtbwtsf" runat="server" Width="180px" Style="margin-left: 1px;
                                                            margin-right: 1px; margin-top: 1px; margin-bottom: 2px;" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        <a href="#" onclick="javascript:showBwt(this)">
                                                            <dx:ASPxImage ID="imgBwtEdit" Style="float: left" Height="16px" ImageUrl="~/Images/037.gif"
                                                                runat="server">
                                                            </dx:ASPxImage>
                                                        </a>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel9" runat="server" Text="委托人(联系方式)：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="dxgvEditFormCell_DevEx" colspan="1" style="width: 25%;">
                                        <table id="Table5" cellpadding="0" cellspacing="0" class="dxeTextBox_DevEx dxeTextBoxSys"
                                            style="width: 100%; border-collapse: collapse;">
                                            <tbody>
                                                <tr>
                                                    <td class="dxic" style="width: 100%;">
                                                        <dx:ASPxTextBox ID="txtwtPhone" runat="server" Width="200px">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="委托书打印时间：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="dxgvEditFormCell_DevEx" style="width: 25%;">
                                        <table id="Table11" cellpadding="0" cellspacing="0" class="dxeTextBox_DevEx dxeTextBoxSys"
                                            style="width: 100%; border-collapse: collapse;">
                                            <tbody>
                                                <tr>
                                                    <td class="dxic" style="width: 100%;">
                                                         <dx:ASPxDateEdit ID="cmdprint" runat="server" Width="200px" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" EditFormat="Date" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <CalendarProperties>
                                                                    <HeaderStyle Spacing="1px" />
                                                                </CalendarProperties>
                                                                <ButtonStyle Width="13px">
                                                                </ButtonStyle>
                                                            </dx:ASPxDateEdit>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text="工作记录说明：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="3" class="dxgvEditFormCell_DevEx">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                            id="Table6" class="dxeTextBox_DevEx dxeTextBoxSys">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxMemo ID="txtsm" ClientInstanceName="txtsm1" runat="server" Height="71px"
                                                            Width="400px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        </dx:ASPxMemo>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel13" runat="server" Text="工作记录日期：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                            id="Table8" class="dxeTextBox_DevEx dxeTextBoxSys">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxLabel ID="lbltime" runat="server" Text="ASPxLabel">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td style="width: 30%; text-align: right">
                                        <dx:ASPxLabel ID="ASPxLabel12" runat="server" Text="当前操作人：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td style="width: 25%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                            id="Table7" class="dxeTextBox_DevEx dxeTextBoxSys">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 100%;" class="dxic">
                                                        <dx:ASPxLabel ID="lblczr" runat="server" Text="ASPxLabel">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <table style="text-align: right; width: 100%;">
                                    <tbody>
                                        <tr>
                                            <td align="right" width="50%" class="dxgvCommandColumn_DevEx">
                                                <dx:ASPxButton ID="btnManage" runat="server" Text="确认委托" Width="90px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    OnClick="btnManage_Click">
                                                </dx:ASPxButton>
                                            </td>
                                            <td align="right" width="3%">
                                                <a href="javascript:closeWindow();">关闭</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </tbody>
                        </table>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
            <dx:ASPxPopupControl ID="popWt1" runat="server" Width="700px" ClientInstanceName="popWt"
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                EnableHotTrack="False" HeaderText="编辑" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                </LoadingPanelImage>
                <LoadingPanelStyle ImageSpacing="5px">
                </LoadingPanelStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                        <dx:ASPxCallbackPanel ID="ASPxCallbackPanel2" ClientInstanceName="call" runat="server"
                            Width="100%">
                            <PanelCollection>
                                <dx:PanelContent runat="server">
                                    <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;">
                                        <tr>
                                            <td style="width: 10%; text-align: right">
                                                <dx:ASPxLabel ID="ASPxLabel18" runat="server" Text="选民姓名：">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td style="width: 20%;" rowspan="1" colspan="1">
                                                <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;">
                                                    <tbody>
                                                        <tr>
                                                            <td style="width: 100%;">
                                                                <dx:ASPxTextBox ID="txtxmxms" runat="server" ClientInstanceName="wtxmxm" Width="170px">
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                            <td style="width: 10%; text-align: right">
                                                <dx:ASPxLabel ID="ASPxLabel19" runat="server" Text="身份证号码：">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td style="width: 20%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                                <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                                    id="Table12" class="dxeTextBox_DevEx dxeTextBoxSys">
                                                    <tbody>
                                                        <tr>
                                                            <td style="width: 100%;" class="dxic">
                                                                <dx:ASPxTextBox ID="txtxmcards" runat="server" ClientInstanceName="wtcard" Width="170px">
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                            <td style="width: 6.5%;">
                                                <dx:ASPxButton ID="btnxmsearch" runat="server" Text="查询" ClientInstanceName="search_name"
                                                    AutoPostBack="false" CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful"
                                                    SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                                    <ClientSideEvents Click="function(s,e){var str1 =wtxmxm.GetValue(); 
                                    var str2 = wtcard.GetValue();
                                    var str3 = '&';
                                    var str = str1 + str3 + str2;
                                    gvwtQuerys.PerformCallback(str); }" />
                                                    <ClientSideEvents Click="function(s,e){var str1 =wtxmxm.GetValue(); 
                                    var str2 = wtcard.GetValue();
                                    var str3 = &#39;&amp;&#39;;
                                    var str = str1 + str3 + str2;
                                    gvwtQuerys.PerformCallback(str); }"></ClientSideEvents>
                                                </dx:ASPxButton>
                                            </td>
                                            <td style="width: 6.5%;">
                                                <dx:ASPxButton ID="btnClearwt" AutoPostBack="false" ClientInstanceName="clears" runat="server"
                                                    Text="确定" OnClick="btnClearwt_Click" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                                                    CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                                    <ClientSideEvents Click="function(s,e){popWt.Hide()}" />
                                                    <ClientSideEvents Click="function(s,e){popWt.Hide()}"></ClientSideEvents>
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                    <dx:ASPxGridView ID="gvwtShow" runat="server" Width="100%" ClientInstanceName="gvwtQuerys"
                                        OnCustomCallback="gvwtShow_CustomCallback" KeyFieldName="sfzh" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                        CssPostfix="Office2010Blue">
                                        <SettingsBehavior AllowDragDrop="False" AllowGroup="False" AllowSort="False" />
                                        <ClientSideEvents FocusedRowChanged="function(s, e) { OnGridFocusedRowChanged(); }">
                                        </ClientSideEvents>
                                        <Columns>
                                            <dx:GridViewCommandColumn ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                                                VisibleIndex="0" Width="10px">
                                                <ClearFilterButton Visible="True">
                                                </ClearFilterButton>
                                            </dx:GridViewCommandColumn>
                                            <dx:GridViewDataTextColumn Caption="姓名" FieldName="xmxm" ShowInCustomizationForm="True"
                                                VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataComboBoxColumn Caption="性别" FieldName="xb" ShowInCustomizationForm="True"
                                                VisibleIndex="2">
                                                <PropertiesComboBox Spacing="0" ValueType="System.String">
                                                    <Items>
                                                        <dx:ListEditItem Text="男" Value="M" />
                                                        <dx:ListEditItem Text="女" Value="F" />
                                                    </Items>
                                                </PropertiesComboBox>
                                            </dx:GridViewDataComboBoxColumn>
                                            <dx:GridViewDataTextColumn Caption="生日" FieldName="sr" ShowInCustomizationForm="True"
                                                VisibleIndex="3">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="身份证号" FieldName="sfzh" ShowInCustomizationForm="True"
                                                VisibleIndex="4">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="手机号码" FieldName="sjhm" ShowInCustomizationForm="True"
                                                VisibleIndex="5">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataComboBoxColumn Caption="是否被委托" FieldName="flag" ShowInCustomizationForm="True"
                                                VisibleIndex="6" Width="87px">
                                                <PropertiesComboBox Spacing="0" ValueType="System.String">
                                                    <Items>
                                                        <dx:ListEditItem Text="是" Value="Y" />
                                                        <dx:ListEditItem Text="否" Value="N" />
                                                    </Items>
                                                </PropertiesComboBox>
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </dx:GridViewDataComboBoxColumn>
                                            <dx:GridViewDataTextColumn Caption="剩余被委托次数" FieldName="sybwtcs" ShowInCustomizationForm="True"
                                                VisibleIndex="7">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowSelectSingleRowOnly="true" />
                                        <ClientSideEvents SelectionChanged="grid_SelectionChanged" />
                                        <SettingsPager SEOFriendly="Enabled">
                                        </SettingsPager>
                                        <SettingsText EmptyDataRow="没有记录" />
                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                            <LoadingPanel ImageSpacing="5px">
                                            </LoadingPanel>
                                        </Styles>
                                        <StylesPager>
                                            <PageNumber ForeColor="#3E4846">
                                            </PageNumber>
                                            <Summary ForeColor="#1E395B">
                                            </Summary>
                                        </StylesPager>
                                        <StylesEditors ButtonEditCellSpacing="0">
                                            <ProgressBar Height="21px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxCallbackPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="ASPxPopupControl1" ClientInstanceName="popBWt" runat="server"
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                Width="700px" EnableHotTrack="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                HeaderText="编辑">
                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                </LoadingPanelImage>
                <LoadingPanelStyle ImageSpacing="5px">
                </LoadingPanelStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;">
                            <tr>
                                <td style="width: 10%; text-align: right">
                                    <dx:ASPxLabel ID="ASPxLabel20" runat="server" Text="选民姓名：">
                                    </dx:ASPxLabel>
                                </td>
                                <td style="width: 25%;" rowspan="1" colspan="1">
                                    <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;">
                                        <tbody>
                                            <tr>
                                                <td style="width: 100%;">
                                                    <dx:ASPxTextBox ID="txtxmxmb" ClientInstanceName="xmxmb" runat="server" Width="170px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <td style="width: 10%; text-align: right">
                                    <dx:ASPxLabel ID="ASPxLabel21" runat="server" Text="身份证号码：">
                                    </dx:ASPxLabel>
                                </td>
                                <td style="width: 20%;" rowspan="1" colspan="1" class="dxgvEditFormCell_DevEx">
                                    <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;"
                                        id="Table13" class="dxeTextBox_DevEx dxeTextBoxSys">
                                        <tbody>
                                            <tr>
                                                <td style="width: 100%;" class="dxic">
                                                    <dx:ASPxTextBox ID="txtxmcardb" ClientInstanceName="xmcardb" runat="server" Width="170px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <td style="width: 6.5%;">
                                    <dx:ASPxButton ID="btnxmbsearch" ClientInstanceName="xmbsearch" AutoPostBack="false"
                                        runat="server" Text="查询" CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful"
                                        SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                        <ClientSideEvents Click="function(s,e){
                                        var xm = xmxmb.GetValue();
                                        var card = xmcardb.GetValue();
                                        var str3 = '&';
                                        var str;
                                        str = xm + str3 + card;
                                        gvbwtQuery.PerformCallback(str); 
                                        }" />
                                        <ClientSideEvents Click="function(s,e){
                                        var xm = xmxmb.GetValue();
                                        var card = xmcardb.GetValue();
                                        var str3 = &#39;&amp;&#39;;
                                        var str;
                                        str = xm + str3 + card;
                                        gvbwtQuery.PerformCallback(str); 
                                        }"></ClientSideEvents>
                                    </dx:ASPxButton>
                                </td>
                                <td style="width: 6.5%;">
                                    <dx:ASPxButton ID="btnClear" AutoPostBack="false" ClientInstanceName="clear" runat="server"
                                        Text="确定" OnClick="btnClear_Click" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                        <ClientSideEvents Click="function(s,e){popBWt.Hide()}" />
                                        <ClientSideEvents Click="function(s,e){popBWt.Hide()}"></ClientSideEvents>
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                        <dx:ASPxCallbackPanel ID="ASPxCallbackPanel1" runat="server" Width="100%" ClientInstanceName="cquery">
                            <PanelCollection>
                                <dx:PanelContent runat="server">
                                    <dx:ASPxGridView ID="gvbwtShow" runat="server" Width="100%" ClientInstanceName="gvbwtQuery"
                                        OnCustomCallback="gvbwtShow_CustomCallback" KeyFieldName="sfzh" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                        CssPostfix="Office2010Blue">
                                        <SettingsBehavior AllowDragDrop="False" AllowGroup="False" AllowSort="False" />
                                        <Columns>
                                            <dx:GridViewCommandColumn ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                                                VisibleIndex="0" Width="10px">
                                                <ClearFilterButton Visible="True">
                                                </ClearFilterButton>
                                            </dx:GridViewCommandColumn>
                                            <dx:GridViewDataTextColumn Caption="姓名" FieldName="xmxm" ShowInCustomizationForm="True"
                                                VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataComboBoxColumn Caption="性别" FieldName="xb" ShowInCustomizationForm="True"
                                                VisibleIndex="2">
                                                <PropertiesComboBox Spacing="0" ValueType="System.String">
                                                    <Items>
                                                        <dx:ListEditItem Text="男" Value="M" />
                                                        <dx:ListEditItem Text="女" Value="F" />
                                                    </Items>
                                                </PropertiesComboBox>
                                            </dx:GridViewDataComboBoxColumn>
                                            <dx:GridViewDataTextColumn Caption="生日" FieldName="sr" ShowInCustomizationForm="True"
                                                VisibleIndex="3">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="身份证号" FieldName="sfzh" ShowInCustomizationForm="True"
                                                VisibleIndex="4">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="手机号码" FieldName="sjhm" ShowInCustomizationForm="True"
                                                VisibleIndex="5">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataComboBoxColumn Caption="是否被委托" FieldName="flag" ShowInCustomizationForm="True"
                                                VisibleIndex="6" Width="87px">
                                                <PropertiesComboBox Spacing="0" ValueType="System.String">
                                                    <Items>
                                                        <dx:ListEditItem Text="是" Value="Y" />
                                                        <dx:ListEditItem Text="否" Value="N" />
                                                    </Items>
                                                </PropertiesComboBox>
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </dx:GridViewDataComboBoxColumn>
                                            <dx:GridViewDataTextColumn Caption="剩余被委托次数" FieldName="sybwtcs" ShowInCustomizationForm="True"
                                                VisibleIndex="7">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowSelectSingleRowOnly="true" />
                                        <ClientSideEvents SelectionChanged="grids_SelectionChanged" />
                                        <SettingsPager SEOFriendly="Enabled">
                                        </SettingsPager>
                                        <SettingsText EmptyDataRow="没有记录" />
                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                            <LoadingPanel ImageSpacing="5px">
                                            </LoadingPanel>
                                        </Styles>
                                        <StylesPager>
                                            <PageNumber ForeColor="#3E4846">
                                            </PageNumber>
                                            <Summary ForeColor="#1E395B">
                                            </Summary>
                                        </StylesPager>
                                        <StylesEditors ButtonEditCellSpacing="0">
                                            <ProgressBar Height="21px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxCallbackPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
        </div>
        <asp:SqlDataSource ID="sqlCmdXjmc" runat="server" 
            ConnectionString="<%$ ConnectionStrings:DAL.Properties.Settings.DelegateConnectionString %>" 
            SelectCommand="SELECT * FROM [Xjdj]"></asp:SqlDataSource>
        
    </div>
    </form>
</body>
</html>
